package com.zmc.member.controller;

import com.zmc.common.utils.R;
import com.zmc.member.application.OrderPreApplicationService;
import com.zmc.member.infrastructure.bean.vo.PreOrderVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


/**
 * @Author：zmc
 * @Date：2024/11/6 15:18
 */

@RestController
@RequestMapping("/order")
public class PreOrderController {

    @Autowired
    private OrderPreApplicationService orderPreApplicationService;

    /**
     * 订单结算页详情
     */
    @PostMapping("/pre")
    public R pre(@RequestBody PreOrderVo vo){
        return R.ok(orderPreApplicationService.pre(vo));
    }
}
